package com.huaxin.dss2.data.NewSmallStation.fbox;

import com.huaxin.dss2.util.Constant;
import com.huaxin.dss2.util.LoggerType;
import java.util.Objects;

/**
 * @author luqing
 */
public class LoggerFactory {
    public Logger createLogger(String name){
        return Objects.equals(LoggerType.production, Constant.loggerType)?new Slf4jLogger(name):new ConsoleLogger(name);
    }

    public <T> Logger createLogger(Class<T> clazz){
        return Objects.equals(LoggerType.production, Constant.loggerType)?new Slf4jLogger(clazz):new ConsoleLogger(clazz);
    }
}
